package erp.education.web.action.admission.transaction;

import org.springframework.beans.factory.annotation.Autowired;

import com.opensymphony.xwork2.ModelDriven;

import erp.education.client.admission.transaction.ApplicationFormRequest;
import erp.education.server.beans.interfaces.admission.transaction.ApplicationFormServiceI;
import erp.education.web.common.BaseAction;

public class ApplicationFormAction extends BaseAction implements
		ModelDriven<ApplicationFormRequest> {
	@Autowired
	ApplicationFormRequest applicationFormRequest;
	@Autowired
	ApplicationFormServiceI applicationFormService;

	public String applicationForm() throws Exception {

		this.result = applicationFormService.applicationLoadLoadSevice(
				applicationFormRequest).getResponseObject();
		getRequest().setAttribute("result", this.result.getResultList());
		return "applicationform";
	}

	@Override
	public ApplicationFormRequest getModel() {
		return this.applicationFormRequest;
	}
}
